﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/TakeoutExpress.Standard.Master" AutoEventWireup="true" CodeBehind="Dashboard.aspx.cs" Inherits="TakeoutExpress2008.Web.MVC.Dashboard" Title="Untitled Page" %>
<%@ Register src="UserControls/SiteDashboardView.ascx" tagname="SiteDashboardView" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphHeader" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphLeftContent" runat="server">
    
   <asp:LoginView runat="server" ID="lvSiteDashboardViewJoinSites">
    <AnonymousTemplate><div class="Normal">Please login to join a site.</div></AnonymousTemplate>
    <LoggedInTemplate> 
     <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <uc1:SiteDashboardView ID="svAvailableSites"  DashboardView="AllSites" runat="server" />
        
    <br />
   
       
            <uc1:SiteDashboardView ID="svMySites" DashboardView="MySites" runat="server" />    
       
    </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="svAvailableSites" />
            <asp:AsyncPostBackTrigger ControlID="svMySites"  EventName="SiteViewRowCommand" />
        </Triggers>
    </asp:UpdatePanel>
    <asp:UpdateProgress runat="server" AssociatedUpdatePanelID="UpdatePanel1"  ID="upMySites"><ProgressTemplate>Updating My Sites Grid</ProgressTemplate></asp:UpdateProgress>
    </LoggedInTemplate>
   </asp:LoginView>
    
   
   
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphMainContent" runat="server">
    <div class="Normal" style="float:left; width:50%">My Audiences<hr /></div>
    <br />
    <div class="Normal" style="float:left; width:50%">--- Data List of Audiences</div>
    <div class="Normal">Available Site Audiences<hr /></div>
    <div class="Normal">--- Data List of Available Audiences</div>
    <div class="Normal"><asp:LinkButton runat="server" ID="lnkCreateTakeoutProvider">Create Takeout Provider</asp:LinkButton></div>
</asp:Content>
